﻿@model LotteryVoteMVC.Models.ShadowModel
@using LotteryVoteMVC.Models
@using LotteryVoteMVC.Resources
@using LotteryVoteMVC.Utility
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>EditShadow</title>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/comm.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/ajaxHelper.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/Shadow.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/comm.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/TableBase.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/inputs.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        span.advance
        {
            padding-left: 3px;
            padding-right: 3px;
            cursor:pointer;
        }
        dt
        {
            font-weight:bold;
            color:#771919;
            }
    </style>
</head>
<body class="long">
    @using (Html.BeginForm())
    {
        <table>
            <thead>
                <tr>
                    <td colspan="2">@(Resource.Edit + Resource.SubUser)
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td style="background: #00FF7F">
                        @Resource.YourPassword
                    </td>
                    <td style="background: #00FF7F">
                        @Html.PasswordFor(it => it.YourPassword)
                        @Html.ValidationMessageFor(it => it.YourPassword)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.UserName
                    </td>
                    <td>
                        <strong>
                            @Html.DisplayFor(it => it.UserName)</strong>
                        @Html.Hidden("Password", "Empty")
                        @Html.Hidden("ConfirmPassword", "Empty")
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.Name
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.Name)
                        @Html.ValidationMessageFor(it => it.Name)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.Status
                    </td>
                    <td>
                        @Html.DropDownListFor(it => it.State, ViewBag.UserState as IEnumerable<SelectListItem>)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Resource.Email
                    </td>
                    <td>
                        @Html.TextBoxFor(it => it.Email)
                        @Html.ValidationMessageFor(it => it.Email)
                    </td>
                </tr>
                <tr>
                    <td>
                        权限
                    </td>
                    <td>
                        @Html.CheckBoxListFor(it => it.AuthActions, ViewBag.AuthActions as IDictionary<string, MultiSelectList>, ViewBag.SelectedAction as string[])
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" name="submit" id="submit" value="@Resource.Submit" />
                    </td>
                </tr>
            </tbody>
        </table>
    }
</body>
</html>
